<template>
	<view class="content">
		<image src="../../static/pay_cg.png" mode="widthFix" v-if="PayType == 'success'"></image>
		<image src="../../static/pay_sb.png" mode="widthFix" v-if="PayType == 'fail'"></image>
		<text class="title" v-if="PayType == 'success'">支付成功</text>
		<text class="title" v-if="PayType == 'fail'">支付失败</text>
		<!-- <text class="text-content">老师腾讯会议号：123456789</text> -->
		<text class="text-content" v-if="PayType == 'success'">重新去选购吧～</text>
		<!-- <button>继续逛一逛</button> -->
		<button @click="linkUrl('/pages/Tabbar/Home/Home')">重新选购</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				PayType: ''
			}
		},
		onLoad(option) {
			this.PayType = option.PayType;
		},
		methods: {
			linkUrl(url) {
				uni.switchTab({
					url: url
				});
			}
		}
	}
</script>

<style>
	page {
		background-color: #f7f7f7;
	}
</style>
<style scoped lang="less">
	.content {
		image {
			transform: scale(0.8);
			display: block;
			margin: 0px auto;
		}

		.title {
			font-family: PingFangSC, PingFang SC;
			font-weight: 600;
			font-size: 36rpx;
			color: #333333;
			display: block;
			text-align: center;
		}

		.text-content {
			font-family: PingFangSC, PingFang SC;
			font-weight: 400;
			font-size: 24rpx;
			color: #888888;
			display: block;
			text-align: center;
			margin-top: 10rpx;
		}

		button {
			width: 55%;
			height: 96rpx;
			background-color: #2183fe;
			color: #fff;
			display: flex;
			justify-content: center;
			align-items: center;
			font-family: PingFangSC, PingFang SC;
			font-weight: 500;
			font-size: 32rpx;
			color: #FFFFFF;
			border-radius: 50rpx;
			margin-top: 150rpx;
			letter-spacing: 2rpx;
		}
	}
</style>